package top.ywlog.permission.dto;

import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;
import top.ywlog.permission.model.SysAclModule;

import java.util.List;

/**
 * @author: Durian
 * @date: 2020/10/22 22:05
 * @description:
 */
@Getter
@Setter
@ToString
public class AclModuleLevelDto extends SysAclModule
{
    private List<AclModuleLevelDto> aclModuleList;

    private List<AclDto> aclList = Lists.newArrayList();

    public static AclModuleLevelDto getInstance(SysAclModule sysAclModule)
    {
        AclModuleLevelDto dto = new AclModuleLevelDto();
        BeanUtils.copyProperties(sysAclModule, dto);
        return dto;
    }
}
